//进度条加载
let nproNum=0
let over=false
t1=setInterval(()=>{
    nproNum++
    let nprogress=document.querySelector('.nprogress')
    if(nproNum>=95&&!over){
        return
    }
    if(nprogress){
        nprogress.style.width=nproNum+'%'
    }else{
        let divObj=document.createElement('div')
        divObj.style.width=nproNum+'%'
        divObj.style.height=5+'px'
        divObj.style.background='#29d'
        divObj.style.position='absolute'
        divObj.style.left=0
        divObj.style.top=0
        divObj.className='nprogress'
        document.body.appendChild(divObj)
        let nprogressRadius=document.createElement('div')
        nprogressRadius.className='nprogressRadius'
        document.body.appendChild(nprogressRadius)
    }
    if(nproNum>=100){
        clearInterval(t1)
        document.body.removeChild(nprogress)
        document.body.removeChild(document.querySelector('.nprogressRadius'))
    }
},10)
window.onload=function(){
    over=true
}